home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: April 24, 1997
- // Author: tbaudel
- //
- // Description:
- // This script creates a panel which has the set editor within it.
- //
- // Input Arguments:
- // None.
- //
- // Return Value:
- // None.
- //
-
- // utilities functions
-
- global proc shadingGroupEditorSetColorShaderMode ()
- {
- if (! `optionVar -exists ShadingGroupEditorColorAssign`)
- optionVar -intValue ShadingGroupEditorColorAssign 0;
- int $i=`optionVar -q ShadingGroupEditorColorAssign`;
- if ($i) $i=0; else $i=1;
- optionVar -intValue ShadingGroupEditorColorAssign $i;
- }
-
- proc string[] getDagOrFacetSelection ()
- {
- // first get selected dag objects (or rather their transforms)
- string $dag_sel[]=`ls -sl -transforms`;
- // then get the selected facets
- string $f_sel[]=`ls -sl -shapes -type float3`;
- int $i;
- for ($i=0; $i < size($f_sel); $i++) {
- string $buf[2];
- tokenize $f_sel[$i] "." $buf;
- if (size($buf) > 1) {
- string $buf2[2];
- tokenize $buf[1] "[" $buf2;
- if ($buf2[0] == "f") // insert only facets
- $dag_sel[size($dag_sel)+1] = $f_sel[$i];
- }
- }
- clear $f_sel;
- return $dag_sel;
- }
-
-
- global proc shadingGroupEditorCreateSet (int $force, string $setEd)
- {
- global int $shadingGroupEditorColorAssign;
- string $items[]=`getDagOrFacetSelection`;
- if (size($items) > 0) {
- string $shader;
- string $set=`evalEcho "sets -n shadingGroup -em -r true -nss true"`;
- evalEcho ("partition -e -addSet renderPartition " + $set);
- if (`optionVar -q ShadingGroupEditorColorAssign` != 0) {
- // *** should use a default shading node type given by the user...
- $shader=`evalEcho "shadingNode -asShader lambert -n coloredShader"`;
- setAttr ($shader + ".color") -type double3 `rand 1` `rand 1` `rand 1`;
- select -d $shader;
- } else {
- string $tmp[]=`listConnections initialShadingGroup.surfaceShader`;
- if (size($tmp) > 0) $shader=$tmp[0]; else $shader="";
- }
- if ($shader != "")
- evalEcho ("connectAttr -f " + $shader + ".outColor "
- + $set + ".surfaceShader");
- string $cmd;
- if ($force) $cmd=("sets -e -fe " + $set);
- else {
- $cmd="sets -e -remove initialShadingGroup ";
- for ($i=0; $i<size($items); $i++)
- $cmd=($cmd + " " + $items[$i]);
- evalEcho $cmd;
- $cmd=("sets -e -include " + $set);
- }
- for ($i=0; $i<size($items); $i++)
- $cmd=($cmd + " " + $items[$i]);
- evalEcho $cmd;
- } else {
- warning "Only geometry objects and polygon facets can be added to shading groups.";
- }
- }
-
- global proc shadingGroupEditorAddItems (int $force, string $setEd)
- {
- global int $shadingGroupEditorColorAssign;
- string $items[]=`getDagOrFacetSelection`;
- if (size($items) > 0) {
- string $set[]=`setEditor -q -hf $setEd`;
- if (size($set) == 1) {
- string $cmd;
- int $i;
- if ($force)
- $cmd=("sets -e -fe " + $set[0]);
- else {
- $cmd="sets -e -remove initialShadingGroup ";
- for ($i=0; $i<size($items); $i++)
- $cmd=($cmd + " " + $items[$i]);
- evalEcho $cmd;
- $cmd=("sets -e -include " + $set[0]);
- }
- for ($i=0; $i<size($items); $i++)
- $cmd=($cmd + " " + $items[$i]);
- evalEcho $cmd;
- } else if (size($set) == 0)
- warning "Select the set to add items to.";
- else warning "Items can be added to only one set.";
- } else warning "Only geometry objects or polygon facets can be added to shading groups.";
- }
-
- global proc shadingGroupEditorRemoveItems (string $setEd)
- {
- string $items[]=`getDagOrFacetSelection`;
- if (size($items) !=0) {
- $cmd="sets -e -fe initialShadingGroup ";
- for ($i=0; $i<size($items); $i++)
- $cmd=($cmd + " " + $items[$i]);
- evalEcho $cmd;
- } else warning "One must select geometry objects or polygon facets to return to the initial shading group.";
- }
-
- global proc shadingGroupEditorDeleteSet (string $setEd)
- {
- string $set[]=`setEditor -q -hf $setEd`;
- if (size($set) > 0) {
- string $i;
- for ($i in $set) {
- string $content[]=`sets -q $i`;
- if (size($content) != 0)
- sets -e -fe "initialShadingGroup" $content;
- }
- // should evalEcho this...
- delete $set;
- } else warning "Select the set(s) to delete.";
- }
-
- global proc shadingGroupEditorRenameCallback (string $setEd, string $window)
- {
- setParent $window;
- string $set[]=`setEditor -q -hf $setEd`;
- if (size($set) == 1) {
- string $res=`textFieldGrp -q -tx wfield`;
- if ($res != "") {
- $res=`evalEcho ("rename " + $set[0] + " " + $res)`;
- text -e -l (" Previous Name: " + $res) wlabel;
- textFieldGrp -e -tx $res wfield;
- } else warning "Name cannot be empty.";
- } else warning "One and only one set can be renamed at a time.";
- }
-
- global proc shadingGroupEditorRenameSet (string $setEd)
- {
- string $set[]=`setEditor -q -hf $setEd`;
- if (size($set) == 1) {
- string $w =`window -title "Rename Shading Group" shadingRenameTmpWnd`;
- setUITemplate -pushTemplate NONE;
- columnLayout -adj true -rs 4;
- separator -style "none";
- text -l (" Previous Name: " + $set[0]) -align "left" wlabel;
- textFieldGrp -l " New Name:" -tx $set[0]
- -cal 1 "left" -cw 1 90
- -cc ("shadingGroupEditorRenameCallback " + $setEd + " " + $w)
- wfield;
- separator -style "none";
- setUITemplate -popTemplate;
- showWindow $w;
- } else warning "One and only one set can be renamed at a time.";
- }
-
- // menu functions
-
- global proc
- buildShadingGroupEditorModeMenu (string $setEd, string $parentMenu)
- {
- setParent -menu $parentMenu;
-
- string $editingItem = ($setEd + "editingItem");
- string $selectNoExpandItem = ($setEd + "selectNoExpandItem");
- string $selectExpandItem = ($setEd + "selectExpandItem");;
-
- // Check to see if we have to build the menu items
-
- if (`menu -query -numberOfItems $parentMenu` == 0)
- {
- radioMenuItemCollection;
- menuItem -label "Editing" -ecr false
- -ann "Editing Mode: allows viewing and editing shading groups content."
- -radioButton true
- -command ("setEditor -edit -mode editing " + $setEd)
- $editingItem;
- menuItem -label "Select Contents" -ecr false
- -ann "Select Content Mode: select's the shading groups content."
- -radioButton false
- -command ("setEditor -edit -mode selectExpand " + $setEd)
- $selectExpandItem;
- menuItem -label "Select" -ecr false
- -ann "Select Mode: selects the shading groups as a whole."
- -radioButton false
- -command ("setEditor -edit -mode selectNoExpand " + $setEd)
- $selectNoExpandItem;
- }
-
- string $operatingMode = `setEditor -query -mode $setEd`;
- menuItem -edit
- -radioButton ($operatingMode == "editing")
- $editingItem;
- menuItem -edit
- -radioButton ($operatingMode == "selectNoExpand")
- $selectNoExpandItem;
- menuItem -edit
- -radioButton ($operatingMode == "selectExpand")
- $selectExpandItem;
- }
-
- global proc
- buildShadingGroupEditorBookmarksMenu (string $setEd, string $parentMenu)
- {
- setParent -menu $parentMenu;
-
- menu -e -deleteAllItems $parentMenu;
-
- menuItem -ecr false -label "Add Bookmark" -command ("setEdBookmarkAddCallback " + $setEd + " later");
- menuItem -optionBox true -label "Add Bookmark Option Box"
- -command ("setEdBookmarkAddCallback " + $setEd + " first");
- menuItem -ecr false -label "Bookmark Editor..." -command ("setEdBookmarkEditor " + $setEd);
- menuItem -divider true;
-
- // Create a menu item for each bookmark
-
- string $bookmarks[] = `setEditor -query -listBookmarks $setEd`;
- string $bookmark;
-
- for ($bookmark in $bookmarks)
- {
- menuItem -ecr false -l $bookmark
- -command ("setEditor -edit -useBookmark " + $bookmark + " " + $setEd);
- menuItem -optionBox true -l ($bookmark + " Option Box")
- -command ("setEdBookmarkRenameMenuCallback " + $setEd + " " + $bookmark);
- }
- }
-
- global proc
- buildShadingGroupEditorOptionsMenu (string $setEd, string $parentMenu)
- {
- setParent -menu $parentMenu;
-
- // These should be unique enough names for the widgets for this
- // instance of the set editor
-
- string $autoUpdateItem = ($setEd + "autoUpdateItem");
- string $autoExpandItem = ($setEd + "autoExpandItem");
- string $autoScrollItem = ($setEd + "autoScrollItem");
- string $listByObjectItem = ($setEd + "listByObject");
- string $listLengthItem = ($setEd + "listLengthItem");
-
- // Check to see if we have to build the menu items
-
- if (`menu -query -numberOfItems $parentMenu` == 0)
- {
- menuItem -ecr false -cb false
- -l "Assign Color to New Groups"
- -ann "Each time a new shading group is created, assign a new random color to allow easy distinction of shading groups."
- -c "shadingGroupEditorSetColorShaderMode"
- renderingSetsAssignItem;
-
- menuItem -divider true;
-
- menuItem -ecr false -label "Auto Update"
- -checkBox 0
- -command ("setEditor -edit -autoUpdate #1 " + $setEd )
- $autoUpdateItem;
- menuItem -ecr false -label "Auto Expand Frames"
- -checkBox 0
- -command ("setEditor -edit -autoExpand #1 " + $setEd)
- $autoExpandItem;
- menuItem -ecr false -label "Auto Scroll to Selection"
- -checkBox 0
- -command ("setEditor -edit -autoScroll #1 " + $setEd)
- $autoScrollItem;
- menuItem -ecr false -label "List by Object"
- -checkBox 0
- -command ("setEditor -edit -groupComponents #1 " + $setEd)
- $listByObjectItem;
- }
-
- // Update the checkbox state for the menu items
- menuItem -edit
- -checkBox `optionVar -q ShadingGroupEditorColorAssign`
- renderingSetsAssignItem;
-
- menuItem -edit
- -checkBox `setEditor -query -autoUpdate $setEd`
- $autoUpdateItem;
- menuItem -edit
- -checkBox `setEditor -query -autoExpand $setEd`
- $autoExpandItem;
- menuItem -edit
- -checkBox `setEditor -query -autoScroll $setEd`
- $autoScrollItem;
- menuItem -edit
- -checkBox `setEditor -query -groupComponents $setEd`
- $listByObjectItem;
-
- // Update the enable/disable state for the menu items
-
- string $operatingMode = `setEditor -query -mode $setEd`;
- if ($operatingMode == "selectExpand" || $operatingMode == "selectNoExpand") {
- menuItem -edit -enable false $autoExpandItem;
- menuItem -edit -enable false $listByObjectItem;
- menuItem -edit -enable false $autoScrollItem;
- } else {
- menuItem -edit -enable true $autoExpandItem;
- menuItem -edit -enable true $listByObjectItem;
- if (`setEditor -query -groupComponents $setEd`)
- menuItem -edit -enable true $autoScrollItem;
- else menuItem -edit -enable false $autoScrollItem;
- }
- }
-
- global proc
- showShadingGroupEditorMenu (int $show, string $menuBarLayout)
- {
- if ($show)
- menuBarLayout -e -h 25 $menuBarLayout;
- else
- menuBarLayout -e -h 1 $menuBarLayout;
- optionVar -intValue showSetEditorMenu $show;
- }
-
- proc ShadingGroupEditorPopupMenu(string $setEd)
- //
- // Description:
- // This script creates popup menu items for the set editor.
- //
- {
- // Define a unique name for the popup menu for this
- // instance of the set editor
- string $menuPopup = ($setEd + "menuPopup");
-
- popupMenu -ctrlModifier false
- -button 3 -aob false -parent $setEd
- $menuPopup;
-
- // These should be unique enough names for the widgets for this
- // instance of the set editor
-
- string $modePopupMenu = ($setEd + "modePopupMenu");
- string $editPopupMenu = ($setEd + "editPopupMenu");
- string $listPopupMenu = ($setEd + "listPopupMenu");
- string $bookmarksPopupMenu = ($setEd + "bookmarksPopupMenu");
- string $optionsPopupMenu = ($setEd + "optionsPopupMenu");
-
- menuItem -label "Mode" -tearOff true -subMenu true $modePopupMenu;
- menuItem -edit -postMenuCommand ("buildShadingGroupEditorModeMenu " + $setEd + " " + $modePopupMenu) $modePopupMenu;
- setParent -menu ..;
-
- menuItem -label "Edit" -tearOff true -subMenu true -aob true $editPopupMenu;
- menuItem -l "Create Shading Group"
- -ann "Add selection to a newly created shading group (facets or objects)."
- -c ("shadingGroupEditorCreateSet 0 " + $setEd);
- menuItem -l "Create Shading Group (force)"
- -ann "Add selection to a newly created shading group (facets or objects). Forces assigned item in the new shader."
- -c ("shadingGroupEditorCreateSet 1 " + $setEd);
- menuItem -d true;
- menuItem -label "Add Items"
- -ann "Add selection to the currently selected shading group (facets or objects)."
- -c ("shadingGroupEditorAddItems 0 " + $setEd);
- menuItem -label "Add Items (force)"
- -ann "Add selection to the currently selected shading group (facets or objects). Forces assigned item in the new shader."
- -c ("shadingGroupEditorAddItems 1 " + $setEd);
-
- menuItem -label "Remove Items"
- -ann "returns selected items (facets or objects) to the initial shading group."
- -c ("shadingGroupEditorRemoveItems " + $setEd);
-
- menuItem -d true;
-
- menuItem -l "Delete Shading Group"
- -ann "Delete selected shading groups, returning their content to the initial shading group."
- -c ("shadingGroupEditorDeleteSet " + $setEd);
- menuItem -l "Rename Shading Group..."
- -ann "Brings a window allowing renaming the selected shading group."
- -c ("shadingGroupEditorRenameSet " + $setEd);
- menuItem -l "Shading Group Attributes..."
- -ann "Brings the attribute editor for the selected shading group."
- -c ("string $set[]=`setEditor -q -hf " + $setEd + "`;"
- + " if (size($set) == 1) { "
- + " showEditor $set[0];"
- + " } else warning \"select the set to edit.\" ");
- setParent -menu ..;
-
- menuItem -label "View" -tearOff true -subMenu true $listPopupMenu;
- menuItem -l "Scroll Frames to Selection" -ecr false
- -c ("setEditor -edit -scrollFrames " + $setEd) scrollItem;
- menuItem -l "Expand All Frames" -ecr false
- -c ("setEditor -edit -expandFrames " + $setEd) expandItem;
- menuItem -divider true;
-
- menuItem -l "Update Now" -ecr false
- -c ("setEditor -edit -reload " + $setEd) updateItem;
- menuItem -l "All Shading Groups" -ecr false
- -c ("setEditor -edit -allSets " + $setEd + ";"
- +"setEditor -edit -showRenderSets true " + $setEd + ";"
- +"setEditor -edit -showNormalSets false " + $setEd + ";"
- +"setEditor -edit -showDeformerSets false "+ $setEd + ";"
- +"setEditor -edit -filter \"DefaultShadingGroupsFilter\" " + $setEd +";")
- allItem;
- setParent -menu ..;
-
- // Since the bookmark menu is dynamic allowing it to be torn off
- // causes crashes
- menuItem -label "Bookmarks" -tearOff false -subMenu true -aob true $bookmarksPopupMenu;
- menuItem -edit -postMenuCommand ("buildShadingGroupEditorBookmarksMenu " + $setEd + " " + $bookmarksPopupMenu) $bookmarksPopupMenu;
- setParent -menu ..;
-
- menuItem -label "Options" -tearOff true -subMenu true $optionsPopupMenu;
- menuItem -edit -postMenuCommand ("buildShadingGroupEditorOptionsMenu " + $setEd + " " + $optionsPopupMenu) $optionsPopupMenu;
- setParent -menu ..;
-
- setParent -menu ..;
- }
-
-
- global proc
- createShadingGroupEditor (string $whichPanel)
- //
- // Description:
- // Define the editors that are used in this panel. No
- // controls (widgets) are created at this point.
- //
- {
- // Create a unique name for the editor based on panel name
- string $setEd = ($whichPanel + "ShadingGroupEd");
- setEditor -unParent $setEd;
- // to avoid having a black first shader, reset the rand seed and start rand;
- seed 1; rand 1; rand 1; rand 1;
- }
-
- global proc
- addShadingGroupEditor (string $whichPanel)
- //
- // Description:
- // Add the panel to a layout.
- // Parent the editors to that layout and create any other
- // controls (widgets) required.
- //
- {
- string $setEd = ($whichPanel + "ShadingGroupEd");
-
- waitCursor -state on;
- // Define a unique name for the menu bar for this
- // instance of the set editor
- string $menuBar = ($setEd + "menuBar");
-
- // Define the standard set editing panel
- string $menuBarLayoutName = `scriptedPanel -q -control $whichPanel`;
- string $formLayoutName = `formLayout`;
-
- if (`optionVar -exists showSetEditorMenu`)
- showShadingGroupEditorMenu (`optionVar -query showSetEditorMenu`) $menuBarLayoutName;
-
- // Attach the menus to the menu form
- setParent $menuBarLayoutName;
- // These should be unique enough names for the widgets for this
- // instance of the set editor
- menu -label "Mode"
- -tearOff true
- -familyImage "menuIconMode.xpm"
- -postMenuCommandOnce true
- modeMenu;
- menu -edit
- -postMenuCommand ("buildShadingGroupEditorModeMenu " + $setEd + " " + "modeMenu")
- modeMenu;
- setParent -menu ..;
-
- menu -label "Edit"
- -tearOff true
- -aob true
- -familyImage "menuIconEdit.xpm"
- -postMenuCommandOnce true
- editMenu;
- menuItem -l "Create Shading Group"
- -ann "Add selection to a newly created shading group (facets or objects)."
- -c ("shadingGroupEditorCreateSet 0 " + $setEd);
- menuItem -l "Create Shading Group (force)"
- -ann "Add selection to a newly created shading group (facets or objects). Forces assigned item in the new shader."
- -c ("shadingGroupEditorCreateSet 1 " + $setEd);
-
- menuItem -d true;
-
- menuItem -label "Add Items"
- -ann "Add selection to the currently selected shading group (facets or objects)."
- -c ("shadingGroupEditorAddItems 0 " + $setEd);
- menuItem -label "Add Items (force)"
- -ann "Add selection to the currently selected shading group (facets or objects). Forces assigned item in the new shader."
- -c ("shadingGroupEditorAddItems 1 " + $setEd);
-
- menuItem -label "Remove Items"
- -ann "returns selected items (facets or objects) to the initial shading group."
- -c ("shadingGroupEditorRemoveItems " + $setEd);
-
- menuItem -d true;
-
- menuItem -l "Delete Shading Group"
- -ann "Delete selected shading groups, returning their content to the initial shading group."
- -c ("shadingGroupEditorDeleteSet " + $setEd);
- menuItem -l "Rename Shading Group..."
- -ann "Brings a window allowing renaming the selected shading group."
- -c ("shadingGroupEditorRenameSet " + $setEd);
- menuItem -l "Shading Group Attributes..."
- -ann "Brings the attribute editor for the selected shading group."
- -c ("string $set[]=`setEditor -q -hf " + $setEd + "`;"
- + " if (size($set) == 1) { "
- + " showEditor $set[0] ;"
- + " } else warning \"select the set to edit.\" ");
-
- setParent -menu ..;
-
- menu -label "View"
- -tearOff true
- -familyImage "menuIconView.xpm"
- -postMenuCommandOnce true
- viewMenu;
- menuItem -l "Scroll Frames to Selection" -ecr false
- -c ("setEditor -edit -scrollFrames " + $setEd) scrollItem;
- menuItem -l "Expand All Frames" -ecr false
- -c ("setEditor -edit -expandFrames " + $setEd) expandItem;
- menuItem -divider true;
- menuItem -l "Update Now" -ecr false
- -c ("setEditor -edit -reload " + $setEd) updateItem;
- menuItem -l "All Shading Groups" -ecr false
- -c ("setEditor -edit -allSets " + $setEd + ";"
- +"setEditor -edit -showRenderSets true " + $setEd + ";"
- +"setEditor -edit -showNormalSets false " + $setEd + ";"
- +"setEditor -edit -showDeformerSets false "+ $setEd + ";"
- +"setEditor -edit -filter \"DefaultShadingGroupsFilter\" " + $setEd +";")
- allItem;
- setParent -menu ..;
-
- // Since the bookmark menu is dynamic allowing it to be torn off
- // causes crashes
- menu -label "Bookmarks"
- -tearOff false
- -aob true
- -familyImage "menuIconBookmarks.xpm"
- bookmarksMenu;
- menu -edit
- -pmc ("buildShadingGroupEditorBookmarksMenu " + $setEd + " bookmarksMenu")
- bookmarksMenu;
- setParent -menu ..;
-
- menu -label "Options"
- -tearOff true
- -familyImage "menuIconOptions.xpm"
- -postMenuCommandOnce true
- optionsMenu;
- menu -edit -pmc ("buildShadingGroupEditorOptionsMenu " + $setEd + " optionsMenu")
- optionsMenu;
- setParent -menu ..;
-
- // Parent the editor to the editor layout
-
- setEditor -edit -parent $formLayoutName $setEd;
- formLayout -edit
- -attachForm $setEd left 0
- -attachForm $setEd right 0
- -attachForm $setEd top 0
- -attachForm $setEd bottom 0
- $formLayoutName;
-
- ShadingGroupEditorPopupMenu $setEd;
-
- setEditor -edit -showRenderSets true $setEd;
- setEditor -edit -showNormalSets false $setEd;
- setEditor -edit -showDeformerSets false $setEd;
- setEditor -edit -filter "DefaultShadingGroupsFilter" $setEd;
-
- setParent -top;
- waitCursor -state off;
- }
-
- global proc
- removeShadingGroupEditor (string $whichPanel)
- //
- // Description:
- // Remove the panel from a layout.
- // Delete controls.
- //
- {
- string $setEd = ($whichPanel + "ShadingGroupEd");
- if (`setEditor -exists $setEd`)
- setEditor -edit -unParent $setEd;
- }
-
- global proc
- deleteShadingGroupEditor (string $whichPanel)
- //
- // Description:
- // This proc will delete the contents of the panel, but not
- // the panel itself.
- //
- // Note:
- // We only need to delete editors here. Other UI will be taken care of
- // by the remove proc.
- //
- {
- string $setEd = ($whichPanel + "ShadingGroupEd");
- if (`setEditor -exists $setEd`)
- deleteUI -editor $setEd;
- }
-
- global proc string
- saveStateShadingGroupEditor (string $whichPanel)
- //
- // Description:
- // This proc returns a string that when executed will restore the
- // current state of the panel elements.
- //
- {
- string $indent = "\n\t\t\t";
- string $setEd = ($whichPanel + "ShadingGroupEd");
- return (
- $indent + "$editorName = ($panelName+\"ShadingGroupEd\");\n" +
- `setEditor -query -stateString $setEd`
- );
- }
-
-